import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import '../model/cart_model.dart';

class NextPage extends StatelessWidget {
  const NextPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
        margin: EdgeInsets.only(top: 200),
        child: Center(
          child: Consumer<CartModel>(
            builder: (context, cart, child){
              return Text("累加count:${cart.cnt}",style: TextStyle(fontSize: 40),);
            },
          ),
        )
    );
  }
}
